package com.qyl.cityInfo.dto;

import java.util.Date;

public class Notice {

	private Integer id;
	private String title;
	private String content;
	private Date   createDate;
	private Date   publishDate;
	private Integer publishStatus;
	private Type   type;
	private User   user;
	
	public Notice(){
		
	}
	
	
	public Notice(Integer id, String title, String content, Date createDate,
			Date publishDate, Integer publishStatus, Type type, User user) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.createDate = createDate;
		this.publishDate = publishDate;
		this.publishStatus = publishStatus;
		this.type = type;
		this.user = user;
	}


	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getPublishDate() {
		return publishDate;
	}
	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}
	public Integer getPublishStatus() {
		return publishStatus;
	}
	public void setPublishStatus(Integer publishStatus) {
		this.publishStatus = publishStatus;
	}
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Override
	public String toString() {
		return "Notice [id=" + id + ", title=" + title + ", content=" + content
				+ ", createDate=" + createDate + ", publishDate=" + publishDate
				+ ", publishStatus=" + publishStatus + ", type=" + type
				+ ", user=" + user + "]";
	}
	
	
}
